<template>
	<article-list column-id="279"></article-list>
</template>

<script>
import { mapGetters } from 'vuex';
import articleList from '@/views/common/articleList';
export default {
	components: { articleList },
	computed: {
		...mapGetters(['menuData']),
		routerPath() {
			return this.$route.path || '';
		},
		columnId() {
			let flatArr = this.$treeToFlat(this.menuData);
			let curData = flatArr.find((n) => n.value === this.routerPath);
			return !curData ? null : curData.id;
		}
	},
	mounted() {
		console.log(this.columnId);
		console.log(this.routerPath);
	}
};
</script>
